package com.citycloud.ccuap.tc.common.dto;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import lombok.Data;

@Data
public class DataCSecurityBasicUser extends User {
    private static final long serialVersionUID = 6683433926830697888L;

    public DataCSecurityBasicUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public DataCSecurityBasicUser(String username, String password,boolean enabled, Collection<? extends GrantedAuthority> authorities) {
        super(username, password,enabled,true,true,true, authorities);
    }

    private Long userId;

    private String userName;

    private boolean isPlatformManager;

}
